using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAOLayer;
using System.Data;

namespace BUSLayer
{
    public class PhieuThueBus
    {
        public static void Them(PhieuThueDto p)
        {
            PhieuThueDao.Them(p);
        }
        public static PhieuThueDto LayMotPhieuThue(int maphong,bool flag)
        {
            PhieuThueDto pt = new PhieuThueDto();
            pt = PhieuThueDao.LayMotPhieuThue(maphong, flag);
            return pt;
        }
        public static void CapNhatXuongCSDL(PhieuThueDto p)
        {
            PhieuThueDao.CapNhatXuongCSDL(p);
        }
        public static PhieuThueDto LayMotPhieuThueTheoMaPhieuThue(int mapt)
        {
            PhieuThueDto pt = new PhieuThueDto();
            pt = PhieuThueDao.LayMotPhieuThueTheoMaPhieuThue(mapt);
            return pt;
        }
        public static DataTable LayDanhSachPhieuThue()
        {
            DataTable dt = new DataTable();
            dt = PhieuThueDao.LayDanhSachPhieuThue();
            return dt;
        }
    }
}
